projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2484fb5
)
Don't crash in navilink on waypoint with no icon description.
author
robertl
<robertl>
Fri, 10 Apr 2009 20:16:03 +0000
(20:16 +0000)
committer
robertl
<robertl>
Fri, 10 Apr 2009 20:16:03 +0000
(20:16 +0000)
navilink.c
patch
|
blob
|
history
diff --git
a/navilink.c
b/navilink.c
index 9198c36fc1492f0494980782ff65d58a3a530f43..e828983cd6ed31399528a1ab7123cf019a0ef42b 100644
(file)
--- a/
navilink.c
+++ b/
navilink.c
@@
-166,7
+166,7
@@
find_icon_from_descr(const char *descr)
{
int i;
- for (i = 0; i < sizeof(icon_table) / sizeof(const char *); i++) {
+ for (i = 0;
descr &&
i < sizeof(icon_table) / sizeof(const char *); i++) {
if (strcmp(descr, icon_table[i]) == 0)
return i;
}